package com.pioneer.gui.invoice.controller;

import javax.swing.event.ChangeListener;
import javax.swing.event.ChangeEvent;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.pioneer.gui.invoice.model.InvoiceModel;
import com.pioneer.gui.invoice.model.InvoiceTableModel;
import com.pioneer.beans.invoice.InvoiceHeaderModel;
import com.pioneer.gui.invoice.view.InvoicePanel;

public class InvoiceModeltoInvoiceTableModelAdapter
implements ChangeListener
{
	    private InvoiceModel invoiceModel;
	    private InvoiceTableModel invoiceTableModel;
	    
	    public InvoiceModeltoInvoiceTableModelAdapter(InvoiceModel invoiceModel, InvoiceTableModel invoiceTableModel)
	    {
	        this.invoiceModel=invoiceModel;
	        this.invoiceTableModel=invoiceTableModel;
	    }
	    
		public void stateChanged(ChangeEvent e)
		{
			//invoiceTableModel.refresh();			
			/*invoiceTableModel.this.view.revalidate();
			invoiceTableModel.this.view.repaint();*/
		}
}